package org.exam.blog.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.exam.blog.domain.Article;
import org.exam.blog.query.MessageQuery;


import java.util.List;


@Mapper
public interface ArticleMapper {
    void add(Article article);

    void delete(Long id);

    Article get(Long id);

    List<Article> getAll();

    void update(Article article);

    void patchDelete(Long[] ids);


    List<Article> queryPage(MessageQuery messageQuery);

    List<Article> dependenceArticles(Long id);
    List<Article> getAll1();
}
